﻿
@{
    ViewBag.Title = "Index";
}

<style>
    #container {
        overflow: hidden;
        width: 100%;
        height: 400px;
        margin: 0;
        font-family: "微软雅黑";
    }
</style>

<input type="text" id="txtName" />
<input type="button" value="确定" onclick="GetShow()" />

<div id="container"></div>
<script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=gyQfGXp5Edv5rUzMB0650OXZGd0lNDm5"></script>
<script>

    /* function GetShow() {*/

    var map = new BMapGL.Map('container'); // 创建Map实例
    map.centerAndZoom('西安市', 12); // 初始化地图,设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放
/*    }*/

</script>